<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui">
<h:head><title>Lista Escursioni</title></h:head>
<h:body>
#{PackBean.setGiornataFocus(param.ng)}
<h:form>  
    <p:dataTable id="dataTable" var="liste" value="#{ProdottiBase.listaEscursione()}" widgetVar="escursioneTable"   
            emptyMessage="Nessuna Escursione Trovata" filteredValue="#{ProdottiBase.selectedEscursione}">  
        
        <p:column id="nomeColumn" filterBy="nome"   
                headerText="Nome" 
                filterMatchMode="contains">  
            <h:outputText value="#{liste.nome}" />  
        </p:column>  

        <p:column id="luogoColumn" filterBy="luogo"   
                headerText="Luogo"
                filterMatchMode="contains">  
            <h:outputText value="#{liste.luogo}" />  
        </p:column>  
 
        <p:column id="costoColumn" filterBy="costo"   
                headerText="Costo"
                filterMatchMode="contains">  
            <h:outputText value="#{liste.costo}" />  
        </p:column> 
                
	  <p:column>
	 	 <p:commandButton value="Seleziona" action="#{PackBean.aggiungiProdottoE(liste)}"/>
	  </p:column>
	</p:dataTable>
</h:form>

</h:body>
</html>